package hello.word.m2.maven.jpa;

import org.jdbi.v3.sqlobject.SqlOperation;
import org.jdbi.v3.sqlobject.statement.internal.SqlQueryHandler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
@SqlOperation(SqlQueryHandler.class)
public @interface BindJpql {

	/**
	 * 如何设置，则不使用自动构建的SQL.
	 * 
	 * @return SQL
	 */
	String value() default "";
}
